package data;


import java.util.ArrayList;
import java.util.List;

import android.util.Log;

import com.socrata.data.View;
/**
 * 
 * @author Allieri Tommaso
 *
 */
public abstract class Place {
	/**
	 * Per inserire un novo dataset basta aggiungere il nome a datasetM[]
	 * listmetadati
	 * [0] musei - iu2c-9p5j
	 * [1] ostelli - 3b7c-6kcq
	 */
	
	
	public static List<View> listmetadati=new ArrayList<View>();
	
	public static String datasetM[]=new String[] {"iu2c-9p5j","3b7c-6kcq"};
	public static List<Place> lista=new ArrayList<Place>();
	
	
	public Place() {
		
	}
	public static void initialize(){
		for(int i=0;i<datasetM.length;i++){
			listmetadati.add(new View());
			
		}
		Log.d("Initialize method","Completed");
	}
	
	public void addPlace(Place l){
		lista.add(l);
	}
	
	public static void setPlaces(List<Place> list){
		lista=list;
	}
	
	public Place getPlace(int index){
		return lista.get(index);
	}
	
	
	
	public abstract String getDenominazione();
	public abstract String getTipologia();
	
	
	@Override
	public abstract String toString();
}
